package top.infopub.mgr.bpa.dao;

import com.github.pagehelper.Page;

import top.infopub.generic.GenericDao;
import top.infopub.mgr.bpa.domain.DeviceSureDomain;
import top.infopub.mgr.bpa.vo.DeviceSureVo;
import top.infopub.model.bpa.DeviceSure;

/** 设备产值确权(BPA_DEVICE_SURE) **/
public interface DeviceSureDao extends GenericDao<DeviceSure, String> {
    
    /**
     * 根据条件查询分页数据
     * @param deviceSureVo
     * @return 
     * @see
     */
    Page<DeviceSureDomain> selectByDomainWhere(DeviceSureVo deviceSureVo);

    /**
     * 根据条件查询-我审批的分页数据
     * @param deviceSureVo
     * @return 
     * @see
     */
    Page<DeviceSureDomain> selectMyCheckByDomainWhere(DeviceSureVo deviceSureVo);
    
    /**
     * 插入记录（自带id）
     * @param deviceSure 
     * @see
     */
    void insertById(DeviceSureVo deviceSure);
    void insertSelective(DeviceSureVo deviceSure);

    /**
     * 根据id查询详情
     * @param id 主键id
     * @return 
     * @see
     */
    DeviceSureVo queryById(String id);

    void updateByIdSelective(DeviceSureVo deviceSureVo);

}